import javax.swing.JCheckBox;

@SuppressWarnings("serial") 
class WellCheckBox extends JCheckBox{
	private Integer rowNumber;
	private Integer colNumber;
	private Integer wellNumber;
	WellCheckBox(String name, Integer wellNumber, Integer rowNumber, Integer colNumber){
		this.setName(name+wellNumber.toString());
		this.setRowNumber(rowNumber);
		this.setColNumber(colNumber);
		this.setWellNumber(wellNumber);
	}
	WellCheckBox(){
		wellNumber = -1;
		this.setName("Blank");
	}
	public Integer getRowNumber() {
		return rowNumber;
	}
	public void setRowNumber(Integer rowNumber) {
		this.rowNumber = rowNumber;
	}
	public Integer getColNumber() {
		return colNumber;
	}
	public void setColNumber(Integer colNumber) {
		this.colNumber = colNumber;
	}
	/**
	 * @return the wellNumber
	 */
	public Integer getWellNumber() {
		return wellNumber;
	}
	/**
	 * @param wellNumber the wellNumber to set
	 */
	public void setWellNumber(Integer wellNumber) {
		this.wellNumber = wellNumber;
	}
	@Override
	public String toString(){
		if(wellNumber>0)
			return "Well "+this.wellNumber+" Row ["+this.rowNumber+"] Col ["+this.colNumber+"]";
		return this.getName();
	}
}